package q344_reverseString;

public class Solution {
    /*
    标准双针
     */
    public void reverseString(char[] s) {
        int l = 0, r = s.length - 1;
        while (r > l) {
            char c = s[r];
            s[r] = s[l];
            s[l] = c;
            r--;
            l++;
        }
    }
}
